package org.example.user.service.imp;

import org.example.user.service.UserService;
import org.example.users.client.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serial;


@Service
public class UserServiceimp implements UserService {
    @Autowired
    private UserFeignClient userFeignClient;

    @Override
    public String loginUser(String phone, String code) {
        return userFeignClient.loginUser(phone,code).getData();
    }

    @Override
    public String getVerifyCode(String phone) {
        return userFeignClient.getVerifyCode(phone).getData();
    }

    @Override
    public Boolean getToken(String token) {
        return userFeignClient.getToken(token).getData();
    }
}
